//package com.bdqn.springweb;
//
//
//import com.bdqn.springweb.filter.AuthorizationFilter;
//import org.springframework.boot.web.servlet.FilterRegistrationBean;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
//@Configuration
//public class FilterConfig {
//    @Bean
//    public FilterRegistrationBean filterRegist() {
//        FilterRegistrationBean registration = new FilterRegistrationBean();
//        registration.setFilter(new AuthorizationFilter() );
//        registration.setName("AuthorizationFilter");
//        registration.addUrlPatterns("/main");
//        registration.setOrder(5);
//        return registration;
//    }
//}
